package com.ling.sbbyyds.mapper.news;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ling.sbbyyds.entity.news.table.NewsChatRoom;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface NewsChatRoomMapper extends BaseMapper<NewsChatRoom>, Mapper<NewsChatRoom> {
    /**
     * 查询两个用户共同的私聊聊天室
     *
     * @param user1 聊天室用户ID
     * @param user2 聊天室用户ID
     * @return 聊天室
     */
    NewsChatRoom queryUserMutualPrChatRoom(Long user1, Long user2);
}
